﻿#define InstallerName "test"
#define InstallerVersion "0.0.1"
#define Publisher "zaoangod"
#define PublisherURL ""
#define AppSupportURL ""
#define AppUpdatesURL ""
#define LicenseFile ""
#define IconFile "./static/icon/icon.ico"
#define StaticDirectory "D:\workspace\project\inno-setup\static"

[setup]
AppId={{C210836F-767B-E63E-63F9-C71599560842}
AppName={#InstallerName}
AppVersion={#InstallerVersion}
//AppVerName={#MyAppName}
AppPublisher={#Publisher}
AppPublisherURL={#PublisherURL}
AppSupportURL={#AppSupportURL}
AppUpdatesURL={#AppUpdatesURL}
// 安装应用文件夹位置
DefaultDirName={autopf}\{#InstallerName}
// 许可文件
LicenseFile={#LicenseFile}
// 打包后输出路径
OutputDir={#SourcePath}\target
// 打包后输出名称
OutputBaseFilename={#InstallerName}
// 安装包图标
SetupIconFile={#IconFile}
// 压缩方式
Compression=lzma
SolidCompression=yes
// 执行权限
//PrivilegesRequired=admin
// 卸载显示名称
UninstallDisplayName={#InstallerName}
// 默认群组名称
DefaultGroupName={#InstallerName}
UninstallIconFile={#IconFile}
// 不显"示准备安装"界面
DisableReadyPage=yes
// 不显示"选择开始菜单文件夹"界面
DisableProgramGroupPage=yes
// 不显示"选择安装路径"界面
DisableDirPage=yes
// 允许在指定架构系统安装
ArchitecturesAllowed=x64
// 64位安装模式安装
ArchitecturesInstallIn64BitMode=x64

[Languages]
Name: "chinese"; MessagesFile: "static\language\ChineseSimplified.isl"

[Files]
Source: "static/dll/botva2.dll"; DestDir: "{tmp}"; Flags: IgnoreVersion RecurseSubDirs CreateAllSubDirs;
Source: "static/dll/InnoCallback.dll"; DestDir: "{tmp}"; Flags: IgnoreVersion RecurseSubDirs CreateAllSubDirs;
Source: "static/image/*"; DestDir: "{tmp}"; Flags: DontCopy SolidBreak NoCompression; Attribs: hidden system;

[Code]
#include "page.iss"

procedure InitializeWizard();
begin
    CreateWelcome();
end;

procedure CurPageChanged(CurPageID: Integer);
begin
    // 欢迎页面
    if (CurPageID = wpWelcome) then
    begin

    end;

    // 安装页面
    if (CurPageID = wpInstalling) then
    begin

    end;

    // 完成页面
    if (CurPageID = wpFinished) then
    begin

    end;
end;
